package com.cp.admin.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 系统任务字典
 * </p>
 *
 * @author yy123
 * @since 2020-03-07
 */
@TableName("sys_task_dict")
public class TaskDict extends Model<TaskDict> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 上级ID
     */
    private Long pid;
    /**
     * 任务名称
     */
    private String name;
    /**
     * 任务编码
     */
    private String code;
    /**
     * 0日常任务 1推广任务 2商务任务
     */
    private Integer type;
    /**
     * 奖励token数量
     */
    @TableField("reward_num")
    private BigDecimal rewardNum;
    /**
     * 奖励积分数量
     */
    private Integer integral;
    /**
     * 状态0正常 1禁止
     */
    private Integer status;
    /**
     * 说明
     */
    private String tips;
    /**
     * 排序
     */
    private Integer num;
    /**
     * 限制次数 0 为无限制
     */
    @TableField("limit_num")
    private Integer limitNum;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getRewardNum() {
        return rewardNum;
    }

    public void setRewardNum(BigDecimal rewardNum) {
        this.rewardNum = rewardNum;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getLimitNum() {
        return limitNum;
    }

    public void setLimitNum(Integer limitNum) {
        this.limitNum = limitNum;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TaskDict{" +
        "id=" + id +
        ", pid=" + pid +
        ", name=" + name +
        ", code=" + code +
        ", type=" + type +
        ", rewardNum=" + rewardNum +
        ", integral=" + integral +
        ", status=" + status +
        ", tips=" + tips +
        ", num=" + num +
        ", limitNum=" + limitNum +
        "}";
    }
}
